package day05;

/**
 * @author Smartloe
 * @create 2021-04-05 21:33
 */
public class PrimeNumberTest2 {
    public static void main(String[] args) {
        boolean isFlag = true;
        long start =  System.currentTimeMillis();
        for (int i = 2; i <= 100000; i++) {
            label:for (int j = 2; j <= Math.sqrt(i); j++) {
                if (i%j == 0){
                    continue label;
                }
            }
        }
        long end = System.currentTimeMillis();
        System.out.println("所花费的时间为："+(end-start));
    }
}

